package final2107.day05.aryConstructorMetRef;

import java.util.Arrays;

public class AryTest {
    public static int[] getAry(int len,AryInterface aryInterface){
        return aryInterface.getAryByLength(len);
    }
    public static void main(String[] args) {
//        int[] dest = getAry(11,len-> new int[len]);
        int[] dest = getAry(10,int[]::new);
        System.out.println(Arrays.toString(dest));
    }
}
